// 基于template/src/config/app-entity-config.ts.hbs生成
import { IEntityDetail } from '@/core';
function getAppEntityConfig(): IEntityDetail[] {
    return [
{{#if app.allPSAppDataEntities}}
    {{#each app.allPSAppDataEntities as | entity |}}
        {
            name: '{{entity.name}}',
            codeName: '{{entity.codeName}}',
            pluralizeCodeName: '{{pluralize entity.codeName}}',
            storageMode: {{entity.storageMode}},
            logicName: '{{entity.logicName}}',
            keyField: '{{#if entity.keyPSAppDEField}}{{entity.keyPSAppDEField.codeName}}{{/if}}',
            majorField: '{{#if entity.majorPSAppDEField}}{{entity.majorPSAppDEField.codeName}}{{/if}}'
        }{{#unless @last}},{{/unless}}
    {{/each}}
{{/if}}
    ]
}

export const AppEntityConfig = getAppEntityConfig();
